<?php
/**
 * @version		$Id: mod_vworldclock.php 2011-07-05 vinaora $
 * @package		VINAORA WORLD TIME CLOCK
 * @subpackage	mod_vworldclock
 * @copyright	Copyright (C) 2010 - 2011 VINAORA. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 * @website		http://vinaora.com
 * @twitter		http://twitter.com/vinaora
 * @facebook	http://facebook.com/vinaora
 */

// no direct access
defined('_JEXEC') or die;

// Require the base Helper only once
// require_once dirname(__FILE__).DS.'helper.php';


$moduleclass_sfx = htmlspecialchars($params->get('moduleclass_sfx'));

// variable for clock
$wtsclock 		= $params->get('wtsclock');
$random			= $params->get('random');
$color			= $params->get('color');
$size			= $params->get('size');
$wtsid			= $params->get('wtsid');
$wmode			= $params->get('wmode');

$color = ltrim($color, '#');
if( $random ){
	$color = substr('00000' . dechex(mt_rand(0, 0xffffff)), -6);
}

JHTML::script("vworldclock.js", "media/mod_vworldclock/js/");

require JModuleHelper::getLayoutPath('mod_vworldclock', $params->get('layout', 'default'));